# -*- coding: utf-8 -*-

from django.views.generic.base import TemplateView
#from yummy.models import Recipe
#from datetime import  datetime
from apps.topcarousel.models import TopCarousel

class HomeView(TemplateView):
	context_object_name = 'home'
	template_name = 'home.html'

	def get_context_data(self, **kwargs):
		context = super(HomeView, self).get_context_data(**kwargs)
		context['carousel'] = TopCarousel.objects.all()
		return context

	'''def get_context_data(self, **kwargs):
		weekday = datetime.isoweekday(datetime.now())

		context = super(HomeView, self).get_context_data(**kwargs)
		context['recipes'] = Recipe.objects.checked(
			).approved(
			).filter(recipephoto__isnull=False)#.distinct()
		return context'''
